package com.xhx.spring.aspect;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

/**
 * @program: sch-diy-parent
 * @description:
 * @author: sch
 * @create: 2023-03-03 11:13
 **/
//@Aspect
//@Component
public class MySpringAspect {
    //execution(* com.zto.tx.*..*(..))
    //execution(public void cn.itcast.spring.a_proxy.CustomerServiceImpl.save())
//    @Before("execution(* com.zto.sch.interview.a006spring.service.UserServiceImpl.save())")
    @Before("execution(* com.xhx.spring.*..*(..))")
    public void before(JoinPoint joinPoint) {
        System.out.println("my aspect before");
    }
}
